package com.hks360.car_treasure.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.hks360.car_treasure.R;
import com.hks360.library.util.CommonUtil;
import com.hks360.library.util.UIUtil;

/**
 * Created by rwq on 2016/4/15.
 */
public class SettingActivity extends Activity implements View.OnClickListener{
    private TextView mUpdatePasswordTv;
    private TextView mTitleTv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_user_setting);
        initView();
    }

    private void initView() {
        setupView();
        initData();
        addListener();
    }

    private void addListener() {
        mUpdatePasswordTv.setOnClickListener(this);
    }

    private void initData() {

    }

    private void setupView() {
        mUpdatePasswordTv = UIUtil.findViewById(this, R.id.setting_updatepass_tv);
        mTitleTv = UIUtil.findViewById(this,R.id.common_title_tv);
        mTitleTv.setText("设置");
    }
    public void back(View v){
        this.finish();
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.setting_updatepass_tv:
                CommonUtil.openActivity(this, FindPassActivity.class);
                break;

        }
    }
}
